<{include file="public/member_header" /}>

<div class="am-cf admin-main">
  <!-- sidebar start -->
  <{include file="public/member_main" /}>
  <!-- sidebar end -->

  <!-- content start -->
 <div class="admin-content">
    <div class="admin-content-body">
	<div class="am-cf am-padding am-padding-bottom-0">
      <div class="am-fl am-cf">
         <strong class="am-text-warning am-text-lg">改稿申请列表</strong>
      </div>
    </div>
	<hr>
	<div class="am-g am-hide-sm-only">
            <div class="am-u-sm-12 am-u-sm-centered">
 				  <form action="?" method="get" class="am-form-inline">
                    <div class="am-form-group">
                        <label for="title" class="am-form-label am-padding-left" style="white-space: nowrap">标题:</label>
                        <input type="text" id="title" name="title" value="<{$UrlParam.title|default=''}>" class="am-form-field" autocomplete="off" placeholder="标题">
                    </div>
                    <div class="am-form-group">
                        <label for="ordernum" class="am-form-label am-padding-left" style="white-space: nowrap">订单号:</label>
                        <input type="text" id="order" name="order" value="<{$UrlParam.order|default=''}>" class="am-form-field" autocomplete="off" placeholder="订单号">
                    </div>
                    <div class="am-btn-group am-margin-left-xs">
					<input type="submit" value="搜索" class="am-btn am-btn-primary">
                     </div>
                </form>
            </div>
            <hr>
        </div>

		<div class="am-g">
            <div class="am-u-sm-12 am-margin-bottom-xs" >
                <div class="am-btn-group" id="status_change">
					<a href="/member.php/changedoc/index.html?status=-1&order=<{$UrlParam.order|default=''}>&title=<{$UrlParam.title|default=''}>" class="am-btn <{if condition="$UrlParam['status'] eq -1"}> am-btn-secondary<{else}>layui-btn-primary<{/if}>">全部</a> 
					<a href="/member.php/changedoc/index.html?status=0&order=<{$UrlParam.order|default=''}>&title=<{$UrlParam.title|default=''}>" class="am-btn <{if condition="isset($UrlParam['status']) && $UrlParam['status'] eq '0'"}>am-btn-secondary<{else}>layui-btn-primary<{/if}>">未处理</a>
					<a href="/member.php/changedoc/index.html?status=1&order=<{$UrlParam.order|default=''}>&title=<{$UrlParam.title|default=''}>" class="am-btn <{if condition="isset($UrlParam['status']) && $UrlParam['status'] eq '1'"}>am-btn-secondary<{else}>layui-btn-primary<{/if}>">处理中</a>
					<a href="/member.php/changedoc/index.html?status=2&order=<{$UrlParam.order|default=''}>&title=<{$UrlParam.title|default=''}>" class="am-btn <{if condition="isset($UrlParam['status']) && $UrlParam['status'] eq '2'"}>am-btn-secondary<{else}>layui-btn-primary<{/if}>">已完成</a>
					<a href="/member.php/changedoc/index.html?status=3&title=<{$UrlParam.title|default=''}>" class="am-btn <{if condition="isset($UrlParam['status']) && $UrlParam['status'] eq '3'"}>am-btn-secondary<{else}>layui-btn-primary<{/if}>">已拒绝</a>
                </div>
            </div>
        </div>

	 
<div class="am-g">
  <div class="am-u-sm-12">
    <div id="my_article_wrapper" class="dataTables_wrapper no-footer">
      <table id="my_article" class="am-table am-table-bordered am-table-striped am-table-hover dataTable no-footer" style="width: 100%;" role="grid" aria-describedby="my_article_info">
        <thead>
          <tr role="row">
            <th class="am-hide-sm-only sorting_disabled" rowspan="1" colspan="1" style="width: 160px;">订单号</th>
            <th class="sorting_disabled quart_td td250" rowspan="1" colspan="1" style="width: 163px;"><span class="am-hide-sm-only" style="display: inline !important;">文章</span>标题</th>
            <th class="sorting_disabled quart_td td200" rowspan="1" colspan="1" style="width: 146px;"><span class="am-hide-sm-only" style="display: inline !important;">媒体</span>名称</th>
            <th class="am-hide-sm-only sorting_disabled price_td" rowspan="1" colspan="1" style="width: 80px;">费用</th>
            <th class="am-hide-sm-only sorting_disabled" rowspan="1" colspan="1" style="width: 80px;">状态</th>
			<th class="am-hide-sm-only sorting_disabled" rowspan="1" colspan="1" style="width: 60px;">反馈</th>
            <th class="am-hide-sm-only sorting_disabled" rowspan="1" colspan="1" style="width: 76px;">提交时间</th>
            <th class="sorting_disabled quart_td last_td" rowspan="1" colspan="1" style="width: 150px;">操作</th>
          </tr>
        </thead>
        <tbody>
		 <{volist name="list" id="v"}>
          <tr role="row" class="odd">
            <td class=" am-hide-sm-only"><{$v.ordernum}></td>
            <td class=" quart_td td250"><{$v.articletitle}></td>          
			<td class=" quart_td td200"><{$v.media_name}></td>
            <td class=" am-hide-sm-only price_td">￥<{$v.price}></td>
            <td class=" am-hide-sm-only">
 			 <{if condition="$v['state'] eq 0"}>
				<sapn style="color:red">待处理</sapn>
				<{/if}>
				<{if condition="$v['state'] eq 1"}>
				<sapn style="color:red">处理中</sapn>
				<{/if}>
				<{if condition="$v['state'] eq 2"}>
				已完成
				<{/if}>
				<{if condition="$v['state'] eq 3"}>
				已拒绝
				<{/if}>
			</td>
            <td class=" am-hide-sm-only"><{$v.state_text|default=""}></td>
			<td class=" am-hide-sm-only"><{$v.addtime|date="Y-m-d H:i:s",###}></td>
            <td class=" quart_td last_td">
			<span class="opat preview">
             <a href="/index/lookg/id/<{$v.id}>"  target="_blank" title='查看要求' class="am-btn am-btn-primary am-radius am-btn-xs am-hide-sm-only">查看要求</a>
              </span>
			 </td>
          </tr>
		  <{/volist}>

        </tbody>
      </table>
      <div class="clear"></div>
    </div>
	<div style="float:right;margin-right:100px;"> <{$list->render()}></div>
  </div>
</div>
</div>
<{include file="public/member_footer" /}>
<link rel="stylesheet" href="__STATIC__/lib/layui/css/layui.css" />
<script src="__STATIC__/lib/layer/layer.js" type="text/javascript" charset="utf-8"></script>
</body>
</html>
<script type="text/javascript">
	function ajaxtip(Url) {
		layer.open({
			title:'',
			type: 2,
			area: ['600px', "600px"],
			//btn: ['确定','关闭'],
			content:[Url, 'no'],
			shade: [0.8, '#393D49'],  
			success: function(layero, index) {
				layer.iframeAuto(index);
			},
			end:function () {
				location.reload();
			}
		});
	}
	</script>